# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1287518693.8022089
_template_filename='/Users/joeldunham/old/onlinelinguisticdatabase/templates/derived/export/options.html'
_template_uri='/derived/export/options.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['heading']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base/index.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        url = context.get('url', UNDEFINED)
        c = context.get('c', UNDEFINED)
        str = context.get('str', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 5
        __M_writer(u'\n\n<p>Choose one of the following export options.</p>\n\n<ol>\n')
        # SOURCE LINE 10
        for triple in c.goodExporters:
            # SOURCE LINE 11
            __M_writer(u"        <li style='margin-bottom: 4em;'>\n            <h2>")
            # SOURCE LINE 12
            __M_writer(escape(triple[2].name))
            __M_writer(u'\n             <span class="emphasize">\n              (.')
            # SOURCE LINE 14
            __M_writer(escape(triple[2].extension))
            __M_writer(u')\n             </span>\n            </h2>\n            <p>')
            # SOURCE LINE 17
            __M_writer(escape(triple[2].description))
            __M_writer(u'</p>\n            <a class=\'buttonLink\' href="')
            # SOURCE LINE 18
            __M_writer(escape(url('export_create', \
                     input=triple[1], option='option%s' % str(triple[0]))))
            # SOURCE LINE 19
            __M_writer(u'">\n                Export with this option\n            </a>\n        </li>\n')
            pass
        # SOURCE LINE 24
        __M_writer(u'</ol>')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_heading(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 3
        __M_writer(u'\n    <h1 class="heading">Export Options</h1>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


